package org.jBPM.test;

import java.util.HashMap;
import java.util.Map;

import org.jbpm.api.Configuration;
import org.jbpm.api.ExecutionService;
import org.jbpm.api.ProcessEngine;
import org.jbpm.api.ProcessInstance;

public class StartProcessInstanceService {
	public static void main(String args[]) {
		ProcessEngine pe = new Configuration().buildProcessEngine();
		ExecutionService es = pe.getExecutionService();
		Map<String, Object> variables = new HashMap<String, Object>();
		variables.put("content", "good");
		ProcessInstance pi = es.startProcessInstanceByKey("DecisionConditions",
				variables);
	}
}
